Added application tests

Tried to add DB migrations