Implemented main tests