added tests and outputs