Implemented a complete set of tests