added tests and bin