Partition problem after HDD to SSD swap
The following diskutil cs resizeStack command is vastly undocumented and as such potentially destructive.

Please backup your Mac OS X before proceeding.


First you have to backup your Recovery HD: Start Terminal.app and enter
defaults write com.apple.DiskUtility DUDebugMenuEnabled 1 press enter and quit Terminal.app
Start Disk Utility and enable 'Show every Partition' in the Debug menu
After a few seconds all partitions should be visible
Choose Recovery HD on the left side and mount the partition Recovery HD. If the Recovery HD is missing skip to step 7.


Verify the disk


Create a disk image of Recovery HD and save it read-only externally


Check the disk image for restore


Detach all external drives
Restart into Internet Recovery Mode by pressing altcmdR
or a bootable Mavericks or Yosemite Thumb Drive (full system or install).
start Terminal from the menubar/utilities
enter following command at the Terminal prompt: 


  diskutil cs list

Copy the Logical Volume (LV) alphanumeric UUID of your CoreStorage volume. The LVUUID should be the fourth listed.
Run the following command:  


  diskutil cs resizeStack LVUUID partsize  


According to the number found above it would be:  


  diskutil cs resizeStack xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 100%  


This will hopefully expand your CoreStorage volume to full 1 TB. Depending on your disk this will take several seconds (SSD) or minutes (HDD). After a successful resize check with diskutil list if the  Recovery HD still exists.
Quit Terminal.app and start Disk Utility and verify the expanded volume.
Reboot to Recovery HD and your main drive. Delete the disk image created in step 5 if everything works as expected.