Fixed issues with attributes not passing through to command functions.
Added basic testing command for py.test