added more main methods to help running tests