added sample tests and failsafe