Completed all bug fixes to the new IAM stateless and stateful tests