Add more tests

Is this only for setting autoloader for API? Maybe it's better not to store this in a var, but only instantiate it.