refactored, added mood test