fixed vector test cases
wrapped qunit tests in anonymous function
added constant for beard width