added new change_affects conditions
removed old test code
added easier testing code