finished main tests