refactor alerts specs
add alerts repository