cleanup after tests; fix a small bug in working directory location on creation
fixing and testing state properties