fixed the test errors
packaged the functions in an imediate function call
updated bower