fixes broken tests and adds test for unlocked_thought_count
adds unlocked thought count