repositories: fixed problem with unique contraint in referenceimpl
applications: moved test programs from controllers project