added test runners to compilation, accounted for phantomjs null undefined bug