implement 'pre-test error in casper/phantom' test case
change stack trace format
fail fast on phantom error
add check method for phantom errors
code cleanup
add test case for page errors