added tests, writable prototrype works