JPA fixes
Added some basic tests
Created first repository