adding test function that raises exception
added in exception handling for timer and action threads, updated spec