Test repository can be loaded from class annotation
Fix incorrect test, assert exception is thrown when entity doesn't exist