Added core test to test the main function without using totes