tests for planet and sign, refactoring