Added test to npm and test for multiple attributes on objects