Added unit tests to order model
fixed migration