Adding tests for active record repository implementation