fixed tests
added migration