Implemented sample recovery policy
Refactored tests to Specification