fixed specs and require libs for testing