Adding JAAS test
Cleaning up the previous commit