refactor tests, add user permissions, coverage and nose tests
refactor tests, add user permissions, coverage and nose tests (remove coverage)