Refactored CreateTableCommandTest and added some tests for ForeignKey